package cn.wei.reallyenjoy.common.utils;

import java.util.UUID;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: wei
 * @Date: 2021/12/01/21:18
 */
public class UUIDUtils {

    public static String getUUID(){
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static void main(String[] args) {
        System.out.println("格式前的UUID ： " + UUID.randomUUID().toString());
        System.out.println("格式化后的UUID ：" + getUUID());
    }
}
